-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert the utils/tty
RBI generator to a Tapioca compiler
#16899
Conversation
/cc @dduugg since you offered 👀 on unsticking me! |
@issyl0 I pushed a teensy change, lmk if that unblocks you. |
Yes, that works (and I understand what I was doing wrong)! Thank you, @dduugg! ⭐ |
- The preferred way of doing RBI generation is via Tapioca. So I am trying to stop being intimidated by it, by learning how it works. - This is very WIP still, currently failing with the following message because the `module` name is missing in the generated RBI file. ``` There are parse errors in the generated RBI files. Errors: sorbet/rbi/dsl/tty.rbi:8: unexpected token tNL (2001) sorbet/rbi/dsl/tty.rbi:64: unexpected token "end" (2001) ```
5c382bb
to
67a096f
Compare
I finally got back to this (sorry for the delay) and Sorbet now passes. 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking very nice! I left a few suggestions, though I know a lot of the logic is copy pasta'd from the previous version.
828e214
to
81eaeca
Compare
Thanks @dduugg! Changes applied since they all made sense, a lot of it was copypasta from the previous version where I was trying to cover all bases that it turns out we didn't need to (like the boolean types, and some methods being dynamic and some not). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! So tidy!
81eaeca
to
db39e93
Compare
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?module
name is missing in the generated RBI file.